// project created on 8/10/2005 at 7:59 AM
using System;
using System.Collections;
using SysReport;

namespace SysReport
{
	class MainClass
	{
		public static string sysReportVersion = "0.0.3";
		public static string system = "conary";
		public static string exit = "False";
		
		public static void Main(string[] args)
		{
			for (int i = 0; i < args.Length; i++) {
				if (args [i] == "--version") {
					Console.WriteLine("SysReport "+sysReportVersion);
					exit = "True";
				} else if (args [i] == "--system") {
					system = args [i+1];
					OutputClass.Run(system);
				} else if (args [i] == "--usage" || args [i] == "--help") {
					Usage();
					exit = "True";
				}
			}

			if (args.Length == 0) {
				OutputClass.Run(system);
			}
		}

                public static void Usage()
		{
			Console.WriteLine("sysreport\t--system [conary||redhat||fedora]");
			Console.WriteLine("\t\t--usage");
			Console.WriteLine("\t\t--help");
			Console.WriteLine("\t\t--version");
		}

	}
}
